package com.jzo2o.customer.controller.open;

import com.jzo2o.common.model.Result;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author itcast
 */
@RestController("operationAgencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "运营端 - 机构认证信息相关接口")
public class AgencyCertificationAuditController {

    @Resource
    private IAgencyCertificationService agencyCertificationService;



    @PostMapping
    @ApiOperation("机构提交认证申请")
    public Result<?> agencyCertification(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
        agencyCertificationService.agencyCertification(agencyCertificationAuditAddReqDTO);
        return new Result(200, "机构提交认证成功", (Object) null);
    }
}
